<include file="Public/header"/>
<div class="x-body">
    <form class="layui-form" action="{:U('Rule/add_handle')}" method="post">

        <div class="layui-form-item">
            <label for="desc" class="layui-form-label">
                <span class="x-red">*</span>权限方法
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="text" id="name" name="name" required="" lay-verify="required"  autocomplete="off" value="" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="desc" class="layui-form-label">
                <span class="x-red">*</span>权限名称
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="text" id="title" name="title" required="" lay-verify="required"  autocomplete="off" value="" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red"></span>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="desc" class="layui-form-label">
                <span class="x-red">*</span>图标编码
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="text" id="ico" name="ico"  autocomplete="off" value="" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red"></span>
            </div>
        </div>                <div class="layui-form-item">            <label for="username" class="layui-form-label">                <span class="x-red"></span>是否启用            </label>            <div class="layui-input-inline" style="width:80%;">                   <select lay-verify="required" name="status" id="status" style="width:80%;">                           <option value="1" selected=''>启用</option>                           <option value="2">停用</option>                   </select><span id="statusa"></span>            </div>            <div class="layui-form-mid layui-word-aux">                <span class="x-red"></span>            </div>        </div>
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>所属分类
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <select name="type" id="type">
                    <option value="0" selected="">顶级</option>
                          <foreach name="info" item="v">
                              <option value="{$v.id}">{$v.title}</option>
                              <foreach name="v.sub" item="vv">
                                  <option value="{$vv.id}">{$vv.title}</option>
                              </foreach>
                          </foreach>

                </select>
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red"></span>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="L_repass" class="layui-form-label">
            </label>
            <button  class="layui-btn" lay-filter="submit" lay-submit="submit">
                保存
            </button>
        </div>
    </form>
</div>
<include file="Public/footer"/>